/*
 * @Author: WuFeng <763467339@qq.com>
 * @Date: 2022-03-22 12:12:49
 * @LastEditTime: 2022-07-09 15:27:22
 * @LastEditors: WuFeng <763467339@qq.com>
 * @Description: 管理接口
 * @FilePath: \vue3-element-plus-web\src\api\drawerDemo.js
 * @Copyright 版权声明
 */

import request from '@/utils/request'

/**
 * @description 获取列表
 */
export function getList(params) {
  const data = params
  return request({
    url: '/drawerDemo/list',
    method: 'post',
    data
  })
}

/**
 * @description 添加保存
 * @param {*} params
 */
export function addSave(params) {
  const data = params
  return request({
    url: '/drawerDemo/add',
    method: 'post',
    data
  })
}

/**
 * @description 编辑保存
 * @param {*} params
 */
export function updateSave(params) {
  const data = params
  return request({
    url: '/drawerDemo/edit',
    method: 'post',
    data
  })
}

/**
 * @description 删除保存
 * @param {*} params
 */
export function deleteSave(params) {
  const data = params
  return request({
    url: '/drawerDemo/delete',
    method: 'post',
    data
  })
}

export default {}
